<table id="sso_currency_log_datagrid_${action_id}" ></table>
<div id="sso_currency_log_datagrid_${action_id}_tb" style="padding:5px;height:auto">
	<div style="margin-bottom:5px">
		<select class="easyui-combobox" id="sso_currency_log_datagrid_${action_id}_tb_select" data-options="onChange:function(nv,ov){
			var qp = $('#sso_currency_log_datagrid_${action_id}').datagrid('options').queryParams;
			$.extend(qp,{'_searcher_eq_key':nv});
			$('#sso_currency_log_datagrid_${action_id}').datagrid('options').queryParams = qp;
			$('#sso_currency_log_datagrid_${action_id}').datagrid('reload');
		}" >
			<option value="-1">${action.getText('log.toolbar.currency.select')}</option>
			<#list currencies as cur>
			<option value="${cur.key?default('')}">${cur.value?default('')}</option>
			</#list>
		</select>
	</div>
</div>

<script type="text/javascript">

$(function(){

	$('#sso_currency_log_datagrid_${action_id}').datagrid({
		iconCls:'icon-save',
		width:'auto',
		height:'auto',
		nowrap: true,
		fit:true,
		fitColumns:true,
		striped: true,
		url:'${request.contextPath}${namespace?default('')}/mp/sso/currencylog-datagrid.json',
		queryParams:{'_searcher_eq_key':'-1','_searcher_eq_member#id':'${id?default('')}'},
		sortName: 'gmtChange',
		sortOrder: 'desc',
		remoteSort: true,
		singleSelect : true,
		idField:'id',
		columns:[[
					{field:'points',title:'${action.getDatagridTitle('points')}',width:80,align:'center'},
					{field:'remain',title:'${action.getDatagridTitle('remain')}',width:80,align:'center'},
					{field:'gmtChange',title:'${action.getDatagridTitle('gmtChange')}',width:80,align:'center'},
					{field:'comments',title:'${action.getDatagridTitle('comments')}',width:200,align:'center'}
				]],
		pagination:true,
		rownumbers:true,
		toolbar:'#sso_currency_log_datagrid_${action_id}_tb'
	});

});


</script>